import requests
import re
from lxml import etree

#爬取飞卢小说网数据：书名、类型、月点击、字数、日期  爬100页

URL = 'https://b.faloo.com/y_0_1.html'
header = {'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36'}

res = requests.get(url=URL,headers=header).text
print(res)
title= re.search('<a(.+?)</a>').group()
print(title)
for i in titles:
    print(i.text)

